/*
 * junzhinuo all rights received.
 */
package com.junzhinuo.cqpzxx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 *
 * @author Didy
 */
@Controller
public class DefaultController {

    @RequestMapping("")
    public ModelAndView index(ModelAndView mav) {
        mav.setViewName("index");
        return mav;
    }
    
    @RequestMapping("/posts")
    public ModelAndView posts(ModelAndView mav) {
        mav.setViewName("posts");
        return mav;
    }
    
    @RequestMapping("/post")
    public ModelAndView post(ModelAndView mav) {
        mav.setViewName("post");
        return mav;
    }
    
    @RequestMapping("/pictures")
    public ModelAndView pictures(ModelAndView mav) {
        mav.setViewName("pictures");
        return mav;
    }
    
    @RequestMapping("/picture")
    public ModelAndView picture(ModelAndView mav) {
        mav.setViewName("picture");
        return mav;
    }
}
